package Database;

import java.io.File;
import java.sql.Connection;

public class Option {
    public static void save (File[] sample) throws Exception
    {
        Connection conn = Connect.getConnection();
    	
        int size = sample.length;
        for (int i =0;i<size;i++)
        {
            save(sample[i],i+1,conn);
        }
        
        Connect.releaseConnection(conn);

    }

    public static void save (File sample,int id,Connection conn) throws Exception
    {   

        Insert.SongInsert(conn, sample);
        Insert.FingerInsert(conn,sample,id);
    }

}
